FROM centos:7

RUN yum install -y net-tools curl which java-1.8.0-openjdk-headless psmisc  && \
    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    yum clean all -y && \
    rm -rf /var/cache/yum/*

ENV JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk/

WORKDIR /dolphinscheduler

ENV DOLPHINSCHEDULER_VERSION 1.3.6
ENV DOWNLOAD_URL https://downloads.apache.org/dolphinscheduler/$DOLPHINSCHEDULER_VERSION/apache-dolphinscheduler-$DOLPHINSCHEDULER_VERSION-bin.tar.gz

RUN curl -LJO $DOWNLOAD_URL